﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WowParserLib.Events;

namespace WowParserLib.EventParsers
{
    public abstract class EventArgsParser: IArgsParser
    {
        private int _startIndex;

        public int StartIndex
        {
            get { return _startIndex; }
        }

        protected EventArgsParser(int startIndex)
        {
            _startIndex = startIndex;
        }

        #region IArgsParser Members

        public abstract EventArguments Parse(string[] args);

        #endregion

        protected bool ParseBool(string val)
        {
            return (val != "nil" && val != "0");
        }

    }
}
